﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University
{
    class School
    {
        private List<Course> courses;
        private Dictionary<int, Student> students;

        public School()
        {
            courses = new List<Course>();
            students = new Dictionary<int, Student>();
        }

        public List<Course> Courses
        {
            get
            {
                return this.courses;
            }
        }

        public List<Student> Students
        {
            get
            {
                return this.students.Values.ToList();
            }
        }

        public void AddCourse(Course course)
        {
            courses.Add(course);
        }

        public void AddStudent(Student student)
        {
            if (students.ContainsKey(student.FN))
            {
                throw new ArgumentException("FN should be unique!");
            }
            students.Add(student.FN, student);
        }

        public static void Main()
        {
        }
    }
}
